﻿using Newtonsoft.Json;

namespace DingTalk.Sdk.Request
{
    public class ActionCardRequest : IRequest
    {
        [JsonProperty("msgtype")]
        public string Msgtype { get; } = "actionCard";

        [JsonProperty("actionCard")]
        public ActionCard ActionCardContent { get; set; }
    }

    public class ActionCard
    {
        [JsonProperty("title")]
        public string Title { get; set; }

        [JsonProperty("text")]
        public string Text { get; set; }

        [JsonProperty("btnOrientation")]
        public string BtnOrientation { get; set; }

        [JsonProperty("singleTitle")]
        public string SingleTitle { get; set; }

        [JsonProperty("singleURL")]
        public string SingleUrl { get; set; }
    }
}
